package com.lvyp.mapper;

import com.lvyp.pojo.Employee;

/**
 * @author lyp
 * @date 2023/03/01/20:52
 * @since 17
 */
public interface EmployeeMapper {
    /**
     * 查询员工根据id
     * @param id
     * @return
     */
    Employee selectEmployeeById(int id);

    /**
     * 插入一条员工记录
     * @param employee
     * @return
     */
    int insertEmployee(Employee employee);

    /**
     * 更新员工信息
     * @param employee
     * @return
     */
    int updateEmployee(Employee employee);

    /**
     * 删除一条记录根据id
     * @param id
     * @return 返回影响行数
     */
    int deleteEmployeeById(int id);
}
